home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1.8 KB | 60 lines | [TEXT/GEOL] |
- Item 3705507 3-Nov-88 07:39
-
- From: D0756 Tradenet, Dev, Adam Wildavsky
-
- To: MACAPP.TECH$ MACAPP Tech
-
- Sub: Modifier Keys and Menus
-
- Two items from Curt Bianchi follow which are answers to a question I posted
- here; I thought they would be of general interest.
-
-
-
- Item 2099311 28-Oct-88 16:15
-
- From: BIANCHI1 Bianchi, Curt
-
- To: D0756 Tradenet, Dev, Adam Wildavsky
-
- Sub: Response to Testing for
-
- Hi Adam,
-
- I know this response is a little late, but I didn't see an answer to your
- question, so...
-
- In MacApp 2.0 we got rid of the global variable gEventInfo in order to better
- support nested event handling. Unfortunately this exposed the fact that the
- event info isn't parametrically passed to all the methods that may need it
- (e.g. DoMenuCommand). We'll add the parameter to the next release of MacApp.
- In the meantime you can override a TApplication method like DispatchEvent and
- record the info in your own global variable. Another possibility, depending on
- what you're doing, would be to override DoCommandKey, which is a TEvtHandler
- method that handles keystrokes when the command key is down.
-
- Hope that helps.
-
- Curt Bianchi
-
-
- Item 8876597 2-Nov-88 11:07
-
- From: BIANCHI1 Bianchi, Curt
-
- To: D0756 Tradenet, Dev, Adam Wildavsky
-
- Sub: Response to Re - Testing for
-
- Hi Adam,
-
- You can go ahead and post my response. Usually I copy MacApp.Tech$ but I guess
- I forgot. It sounds like DoSetupMenus needs to have an EventInfo record passed
- to it. I hate to do this because it will cause everyone to edit their sources,
- but it's really needed so we'll go ahead and do it.
-
- Curt
-
-
-
-